package com.systop.asset.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 资产盘点记录对象 inventory_records
 * 
 * @author lsp
 * @date 2025-07-07
 */
public class InventoryRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 盘点ID */
    private Long id;

    /** 盘点名称 */
    // ( "盘点名称")
    private String name;

    /** 盘点单号 */
    // ( "盘点单号")
    private String orderNo;

    /** 实际盘点开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    // ( "实际盘点开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 实际盘点结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    // ( "实际盘点结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 操作人ID */
    // ( "操作人ID")
    private Long operator;

    /** 盘点人ID */
    // ( "盘点人ID")
    private Long taskId;
    /** 盘点人ID */
    // ( "盘点人ID")
    private String taskName;

    /** 批次号 */
    // ( "批次号")
    private String batchNo;

    /** 审核状态 0未审核1已审核 */
    // ( "审核状态 0未审核1已审核")
    private Integer isConfirmed;

    /** 计划开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    // ( "计划开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 计划结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    // ( "计划结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 审核ID */
    // ( "审核ID")
    private Long confirmedBy;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    // ( "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date confirmedAt;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    // ( "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    private Long[] departmentIds;

    private Integer type;
    private String deptId;

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long[] getDepartmentIds() {
        return departmentIds;
    }

    public void setDepartmentIds(Long[] departmentIds) {
        this.departmentIds = departmentIds;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setOperator(Long operator) 
    {
        this.operator = operator;
    }

    public Long getOperator() 
    {
        return operator;
    }
    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setBatchNo(String batchNo) 
    {
        this.batchNo = batchNo;
    }

    public String getBatchNo() 
    {
        return batchNo;
    }
    public void setIsConfirmed(Integer isConfirmed) 
    {
        this.isConfirmed = isConfirmed;
    }

    public Integer getIsConfirmed() 
    {
        return isConfirmed;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setConfirmedBy(Long confirmedBy) 
    {
        this.confirmedBy = confirmedBy;
    }

    public Long getConfirmedBy() 
    {
        return confirmedBy;
    }
    public void setConfirmedAt(Date confirmedAt) 
    {
        this.confirmedAt = confirmedAt;
    }

    public Date getConfirmedAt() 
    {
        return confirmedAt;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("orderNo", getOrderNo())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("operator", getOperator())
            .append("taskId", getTaskId())
            .append("batchNo", getBatchNo())
            .append("isConfirmed", getIsConfirmed())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("confirmedBy", getConfirmedBy())
            .append("confirmedAt", getConfirmedAt())
            .append("createdTime", getCreatedTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
